package com.dxx.cloud.admin.module.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

import java.math.BigDecimal;

@Schema(description = "更新商品规格请求体")
public class GoodsSizeUpdateRequest {
    @Schema(description="商品规格id",example="1")
    @NotNull
    private Integer id;

    @Schema(description="商品规格",example="规格1")
    private String unit;

    @Schema(description="皮重",example="1")
    private BigDecimal tare;

    @Schema(description="毛重",example="1")
    private BigDecimal grossWeight;

    @Schema(description="净重",example="1")
    private BigDecimal netWeight;

    @Schema(description="商户id",example="1")
    @JsonIgnore
    private Long merId;

    @Schema(description="门店id",example="1")
    @JsonIgnore
    private Long shopId;

    @Schema(description="商品id",example="1")
    @JsonIgnore
    private Integer goodsId;

    @Schema(description="库存量",example="1")
    @JsonIgnore
    private BigDecimal inventory;

    @Schema(description="单价",example="1")
    private BigDecimal unitPrice;

    @Schema(description="单价",example="1")
    private BigDecimal floorPrice;

    @Schema(description="图片地址",example = "test.png")
    private String icon;

    @Schema(description="最小克重",example = "1")
    private Integer minGramWeight;

    @Schema(description="最大克重",example = "1")
    private Integer maxGramWeight;
    @Schema(description="状态：1有效, -1 无效",example="1")
    private Integer status;

    @Schema(description="修改人",example="admin")
    private String updater;

    @Schema(description="操作者",example="admin")
    private String operator;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getMerId() {
        return merId;
    }

    public void setMerId(Long merId) {
        this.merId = merId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getTare() {
        return tare;
    }

    public void setTare(BigDecimal tare) {
        this.tare = tare;
    }

    public BigDecimal getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(BigDecimal grossWeight) {
        this.grossWeight = grossWeight;
    }

    public BigDecimal getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }

    public BigDecimal getInventory() {
        return inventory;
    }

    public void setInventory(BigDecimal inventory) {
        this.inventory = inventory;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public BigDecimal getFloorPrice() {
        return floorPrice;
    }

    public void setFloorPrice(BigDecimal floorPrice) {
        this.floorPrice = floorPrice;
    }

    public Integer getMinGramWeight() {
        return minGramWeight;
    }

    public void setMinGramWeight(Integer minGramWeight) {
        this.minGramWeight = minGramWeight;
    }

    public Integer getMaxGramWeight() {
        return maxGramWeight;
    }

    public void setMaxGramWeight(Integer maxGramWeight) {
        this.maxGramWeight = maxGramWeight;
    }
}